package com.insigma.business.qrcode.soldier.service.impl;

import com.insigma.business.qrcode.soldier.dao.BasicInformationDAO;
import com.insigma.business.qrcode.soldier.entity.BasicInformationDO;
import com.insigma.business.qrcode.soldier.service.BasicInformationService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("basicInformationService")
public class BasicInformationServiceImpl implements BasicInformationService {
    @Resource
    BasicInformationDAO basicInformationDAO;

    @Override
    public List<BasicInformationDO> queryBasicInformationList(BasicInformationDO basicInformationDO) {
        List<BasicInformationDO> list =  basicInformationDAO.queryBasicInformationList(basicInformationDO);
        return list;
    }

    @Override
    public Integer updateBasicInformation(BasicInformationDO basicInformationDO) {
        return basicInformationDAO.updateByPrimaryKeySelective(basicInformationDO);
    }
}
